{{ define "admin/goodsType/edit.html" }}
    {{ template "admin/common/page_header.html" .}}

    <div class="row">
        <div class="col-lg-12">
            <div class="card">
                <header class="card-header">
                    增加商品类型
                </header>
                <div class="card-body">
                    <form action="/admin/goodsType/doEdit" method="post">
                        <input type="hidden" name="id" value="{{.goodsType.Id}}" />
                        <div class="form-group col-md-12">
                            <label for="title">类型名称</label>
                            <input type="text" class="form-control" id="title" name="title" autocomplete="off" value="{{.goodsType.Title}}" placeholder="类型名称">
                        </div>
                        <div class="form-group col-md-12">
                            <label for="description">类型描述</label>
                            <textarea  class="form-control" id="description" name="description"  placeholder="类型描述" >{{.goodsType.Description}}</textarea>
                        </div>
                        <div class="form-group col-md-12">
                            <label for="status">状　　态</label>
                            <div class="clearfix">
                                <div class="custom-control custom-radio custom-control-inline">
                                    <input type="radio" id="statusOne" name="status" {{if eq .goodsType.Status 1}}checked{{end}} class="custom-control-input" checked value="1">
                                    <label class="custom-control-label" for="statusOne">显示</label>
                                </div>
                                <div class="custom-control custom-radio custom-control-inline">
                                    <input type="radio" id="statusTwo" name="status" {{if eq .goodsType.Status 0}}checked{{end}} class="custom-control-input" value="0">
                                    <label class="custom-control-label" for="statusTwo">隐藏</label>
                                </div>
                            </div>
                        </div>
                        <div class="form-group col-md-12">
                            <button type="submit" class="btn btn-primary ajax-post" target-form="add-form">确 定</button>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>

{{end}}